package com.atguigu.cloud.controller;

import com.atguigu.cloud.service.api.ChainFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ChainController {

    @Autowired
    private ChainFeignClient chainFeignClient;

    @GetMapping("/get/data")
    public String getData() {

        String data = chainFeignClient.getData();

        return data + " data chain 04";
    }

}
